import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/IndexHomeView.vue'
const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: HomeView
    },
    {
      path: '/jingxuan',
      name: 'jingxuan',
      component: () => import('../views/JingxuanView.vue')
    },
    //案例详情
    {
      path: '/jingxuan/detail',
      name: 'jxdetail',
      component: () => import('../views/jingxuan/DetailView.vue')
    },
    //设计师
    {
      path: '/design',
      name: 'design',
      component: () => import('../views/DesignView.vue')
    },
    //设计师详情
    {
      path: '/design/detail',
      name: 'designdetail',
      component: () => import('../views/design/DetailView.vue')
    },
    //在建工地
    
    {
      path: '/craft/duilding',
      name: 'duilding',
      component: () => import('../views/craft/DuildingView.vue')
    },
    //业主心声
    {
      path: '/owner/voice',
      name: 'voice',
      component: () => import('../views/owner/VoiceView.vue')
    },
    //装修攻略
    {
      path: '/strategy/list',
      name: 'strategylist',
      component: () => import('../views/strategy/ListView.vue')
    },
    //装修攻略详情
    {
      path: '/strategy/detail',
      name: 'strategydetail',
      component: () => import('../views/strategy/DetailView.vue')
    },
    //招贤纳士
    {
      path: '/owner/join',
      name: 'join',
      component: () => import('../views/owner/JoinView.vue')
    },
    //全案服务
    {
      path: '/matericl',
      name: 'matericl',
      component: () => import('../views/MatericlView.vue')
    },
    //关于公司
    
    {
      path: '/about',
      name: 'about',
      component: () => import('../views/AboutView.vue')
    },
  ]
})

export default router
